package com.sfzy.service;

import com.github.pagehelper.PageInfo;
import com.sfzy.entity.Question;

import java.util.List;

public interface QuestionService {
    //增
    int addQuestion(Question question);
    //删
    int deleteQuestion(int id);
    //改
    int updateQuestion(Question question);
    //根据id查
    Question getQuestionById(int id);
    //分页查
    PageInfo<Question> getQuestions(Question question, int pageNum, int pageSize);
}
